package Month10.day1004;

class Third implements Cloneable {
    int num;

    public Third(int num) {//第三个类的构造器
        this.num = num;
    }

    @Override
    public String toString() {//重写第三个类的toString方法
        String s = String.valueOf(num);
        return s;
    }

    @Override
    public Third clone() throws CloneNotSupportedException {//重写第三个类的clone
        return (Third) super.clone();
    }
}
